package com.carsystems.mapper;

import com.carsystems.pojo.ViolationType;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ViolationTypeMapper {
    //查询全部违规类型
    List<ViolationType> ViolationList();

    //按type_id查询单条违规类型
    ViolationType selectByPrimaryKey(int type_id);

    //增加一条违规类型
    int addViolationType(ViolationType violationType);

    //修改一条违规类型
    int updateViolationType(ViolationType violationType);

    //删除一条违规类型
    int deleViolationType(int type_id);
}
